﻿using FlowCanvas.Nodes;
using LogSystem;
using ParadoxNotion.Design;
using Yoozoo.Gameplay.Liberty;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    [Category("Ggame")]
    public class PlayerTransmission : CallableActionNode<string>
    {
        public override void Invoke(string pointName)
        {
            BluePrintPoint point = BlueprintUtils.GetBlueprintPoint(pointName);
            if (point!=null)
            {
                BlueprintUtils.PlayerTransmission(point.position,point.eulerAngles);
            }
            else
            {
                Debug.LogError(LogModule.Blueprint,"找不到蓝图点信息：" + pointName);
            }
        }
    }
}